

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_GRAYSCALE_SENSOR_BLOCK_1608020333525'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_GRAYSCALE_SENSOR_BLOCK_1608020333525'] = ``;
            Blockly.Arduino.definitions_['define_EXT_GRAYSCALE_SENSOR_BLOCK_1608020333525'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_GRAYSCALE_SENSOR_BLOCK_1608020333525'] = `pinMode(${pin}, INPUT);`;
             return  [`analogRead(${pin})`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        